package com.mhc.suzuki.constant;

/**
 * Created by HMJ on 2017/8/19.
 */
public enum MsgCodeEnum {
    //新增成功
    ADD_SUCCESS("1001", "新增成功"),
    QUERY_SUCCESS("1002","查询成功"),
    UPDATE_SUCCESS("1003","修改成功"),
    NO_DATA("1004", "无数据"),
    UPDATE_FAIL("1005", "修改数据错误"),
    DELETE_SUCCESS("1006", "删除成功"),
    INSERT_SUCCESS("1007", "插入成功"),

    PARAM_ERROR("1008", "参数错误"),
    INSERT_FAIL("1009", "插入数据错误"),
    QUERY_FAIL("1010", "查询错误"),
    DELETE_ERROR("1011", "删除错误"),

    DATA_ERROR("1012", "数据异常"),
    DUPLICATE_ERROR("1013", "重复操作"),
    NO_AUTH("1014", "没有权限"),
    UPLOAD_ERROR("1015", "文件上传失败"),
    INVALID_LOANORDER("1018", "异常的订单宝"),
    WRONG_SIGNCODE("1019", "错误的验证码"),
    EMPTY_USER("1020", "获取用户为空"),
    USER_NOT_EXISTS("1023", "用户不存在"),
    USER_NAME_PASSWORD_ERROR("1029", "用户名或密码错误"),
    NO_AUTHORIZED("1030", "用户未被授权"),
    NO_FUNCTION_ERROR("1031", "查询无任何功能"),
    NO_ROLE_ERROR("1032", "该用户无任何角色"),
    EXCEPTION("9999", "系统异常"),
    ACCOUNT_EXISTS("1024","账号已被注册"),
    DATA_DUPLICATE_ERROR("1025", "出现不允许重复数据");
    private String errMsg;
    private String errCode;

    private MsgCodeEnum(String errCode, String errMsg) {
        this.errMsg = errMsg;
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return this.errMsg;
    }

    public String getErrCode() {
        return this.errCode;
    }
}
